package cn.lll.vuehouse.service;

import cn.lll.vuehouse.FORM.RolePermissionForm;
import cn.lll.vuehouse.common.ResponseResult;
import cn.lll.vuehouse.dto.RolePageDTO;
import cn.lll.vuehouse.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author asus-pc
* @description 针对表【sys_role】的数据库操作Service
* @createDate 2023-09-01 11:50:31
*/
public interface RoleService extends IService<Role> {


    ResponseResult getRoleList(RolePageDTO rolePageDTO);

    ResponseResult updateRoleState(Role role);

    ResponseResult addRole(Role role);

    ResponseResult updateRole(Role role);

    ResponseResult getRoleById(Integer id);

    ResponseResult deleteRoleById(Integer id);

    ResponseResult addRolePermission(RolePermissionForm rolePermissionForm);

    ResponseResult getRolesList();
}
